# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Lin, Meng-Bo <linmengbo06890@proton.me>
pkgname=device-samsung-fortunaltezt
pkgdesc="Samsung Galaxy Grand Prime (SM-G530Y)"
pkgver=3
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	postmarketos-base
	mkbootimg
	linux-postmarketos-qcom-msm8916
	soc-qcom-msm8916
	soc-qcom-msm8916-rproc
"
makedepends="devicepkg-dev"
source="
	deviceinfo
	modules-initfs
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
_pmb_select="soc-qcom-msm8916-rproc"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-samsung-fortunaltezt-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
497d61341daf05a6ad2b87c8460dad0662c97e51dfd38207b8d074bec51d7beb14c5c24bc1649285d0e9e8b75eddf4d7c2f9f5e9904e740d7657509a17029964  deviceinfo
0dcec6521708a8733aab879eb65047d3bf0ab562d4afb40fec2cff057a08b52b59940e1f9dea2f32519b2565af0399f724950c631ee45790a73199eb53c0653f  modules-initfs
"
